<?php if($userinfo == null):?>
<div class="s18 txt-center">ĐĂNG NHẬP TÀI KHOẢN</div>
<?php echo form_open_multipart('user/login',array("autocomplete"=>"off")); ?>
<div class="pad-15-10">
	<ul class="mag-b10">
		<li class="relative mag-b10"><span class="absolute ic ic-user3"></span>
			<input id="username" name="uname" required="required" type="text" />
		</li>
		<li class="relative"><span class="absolute ic ic-pass"></span> <input
			id="password" name="pass1" required="required" type="password" />
		</li>
	</ul>


	<input type="submit" class="bt-green" name="loginsmb" value="Đăng nhập" />
	<div class="txt-center clearfix">
		<span class="fl cl6"> <input type="checkbox" name="remember"
			class="mag0"> Nhớ mật khẩu
		</span> <a href="<?php echo site_url('home/lostpass'); ?>"
			class="fr cl9"><strong>Quên mật khẩu</strong> </a>
	</div>
</div>
<?php echo form_close(); ?>

<div class="notuser">
	<div class="txt-center">
		<strong>Chưa là thành viên của payz ?</strong>
	</div>
	<a href="<?php echo site_url('home/register');?>">
		<button class="bt-white" type="button">Đăng ký miễn phí</button>
	</a>
</div>
<?php else:?>
<div class="notuser">
	<div class="txt-center">
		<strong>Thông tin cá nhân</strong> <br/>
		Tài khoản: <?php echo $userinfo;?> <br/>
		Doanh thu: <?php echo number_format($profit);?><br/>
		Lợi nhuận: <?php echo number_format(($profit/100)*35);?><br/> 
		
	</div>
	<a href="<?php echo site_url('user/dashboard');?>">
		<button class="bt-white" type="button">Trang quản trị</button>
	</a><br/>
	<a href="<?php echo site_url('user/logout');?>">
		<button class="bt-white" type="button">Thoát</button>
	</a>
 		
</div>
 
<?php endif;?>